home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / debugger / mxgdb-1.000 < prev    next >
Encoding:
Text File  |  1996-11-16  |  2.1 KB  |  80 lines

  1. diff -r --context=3 mxgdb-1.2/Imakefile mxgdb-1.2-linux/Imakefile
  2. *** mxgdb-1.2/Imakefile    Tue Nov  2 00:16:26 1993
  3. --- mxgdb-1.2-linux/Imakefile    Tue May 30 21:26:53 1995
  4. ***************
  5. *** 29,34 ****
  6. --- 29,37 ----
  7.   # -DSYSV, -DHAVE_TERMIO. Refer to the README for a description
  8.   # and some tested configurations.
  9.   
  10. + INCLUDES = -I/usr/include/X11
  11. + DEFINES = -DSYSV
  12.   LOCAL_LIBRARIES=-lXm -lXt -lX11
  13.   
  14.   MALLOCC=malloc.c
  15. ***************
  16. *** 50,56 ****
  17.   MALLOCO = 
  18.   
  19.   #else
  20. ! CCOPTIONS=-DDEBUG -DHAVE_TERMIO -DHAVE_MMAP -Dconst=""
  21.   #endif
  22.   
  23.   # Some installations have specific libs and headers to use with Motif
  24. --- 53,59 ----
  25.   MALLOCO = 
  26.   
  27.   #else
  28. ! CCOPTIONS=-DDEBUG -DHAVE_TERMIO -DHAVE_MMAP -Dconst="" $(INCLUDES)
  29.   #endif
  30.   
  31.   # Some installations have specific libs and headers to use with Motif
  32. diff -r --context=3 mxgdb-1.2/callgdb.c mxgdb-1.2-linux/callgdb.c
  33. *** mxgdb-1.2/callgdb.c    Mon Sep 13 18:42:29 1993
  34. --- mxgdb-1.2-linux/callgdb.c    Tue May 30 21:29:28 1995
  35. ***************
  36. *** 463,469 ****
  37. --- 463,474 ----
  38.         close(slave);
  39.       close(master);
  40.   
  41. + #ifdef linux
  42. +     fcntl(1, F_SETFL, O_APPEND);
  43. + #else
  44.       fcntl(1, F_SETFL, FAPPEND);
  45. + #endif
  46.   #ifdef SYSV
  47.       setvbuf (stdout, NULL, _IONBF, 0);
  48.   #else
  49. diff -r --context=3 mxgdb-1.2/signals.c mxgdb-1.2-linux/signals.c
  50. *** mxgdb-1.2/signals.c    Mon Sep 13 18:42:31 1993
  51. --- mxgdb-1.2-linux/signals.c    Tue May 30 21:32:26 1995
  52. ***************
  53. *** 92,97 ****
  54. --- 92,106 ----
  55.    */
  56.   void trap_signals()
  57.   {
  58. + #ifdef linux
  59. +     signal(SIGQUIT, kill_handler);
  60. +     signal(SIGILL,  kill_handler);
  61. +     signal(SIGBUS,  kill_handler);
  62. +     signal(SIGSEGV, kill_handler);
  63. +     signal(SIGTERM, kill_handler);
  64. +     signal(SIGKILL, kill_handler);
  65. +     signal(SIGCHLD, quit_handler);    /* child status has changed */
  66. + #else
  67.       sigset(SIGQUIT, kill_handler);
  68.       sigset(SIGILL,  kill_handler);
  69.       sigset(SIGBUS,  kill_handler);
  70. ***************
  71. *** 99,102 ****
  72. --- 108,112 ----
  73.       sigset(SIGTERM, kill_handler);
  74.       sigset(SIGKILL, kill_handler);
  75.       sigset(SIGCHLD, quit_handler);    /* child status has changed */
  76. + #endif
  77.   }
  78.